<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" layout:decorate="main"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
    <title>编辑联系人</title>
    <link th:href="@{/static/localcss/crmlist.css}" href="../../static/localcss/crmlist.css" rel="stylesheet">
    <style type="text/css">
        table tr{
            line-height: 40px;
        }
        table tr td{
            text-align: center;
        }

        .bg{
            width: 165px;
        }
    </style>
</head>
<body>
<div layout:fragment="content">
    <div class="">
        <div class="clearfix"></div>
        <div class="row">
            <div class="col-md-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h2>
                            客户信息管理 > 客户信息 > 联系人 > 编辑联系人 <i class="fa fa-user"></i>
                        </h2>
                        <div class="clearfix"></div>
                    </div>
                    <div class="x_content">
                        <form class="form-horizontal form-label-left" th:action="@{/linkman/update}" action="/linkman/update" method="post">
                        <input type="hidden" name="lkmId" th:value="${linkman.lkmId}" />
                            <input type="hidden" name="lkmCustNo" th:value="${linkman.lkmCustNo}">
                            <input type="hidden" name="lkmCustName" th:value="${linkman.lkmCustName}">
                            <table width="100%">
                            <tr>
                                <td class="bg">姓名</td>
                                <td><input class="form-control" name="lkmName" th:value="${linkman.lkmName}" /></td>
                                <td class="bg">性别</td>
                                <td style="text-align: left">
                                    <input id="male" name="lkmSex" type="radio" th:value="男" th:checked="${linkman.lkmSex=='男'}" /><label for="male">男</label>
                                    &nbsp;&nbsp;&nbsp;&nbsp;
                                    <input id="female" name="lkmSex" type="radio" th:value="女" th:checked="${linkman.lkmSex=='女'}" /><label for="female">女</label>
                                </td>
                            </tr>
                            <tr>
                                <td>职位</td>
                                <td><input class="form-control" name="lkmPostion" th:value="${linkman.lkmPostion}" /></td>
                                <td>办公电话</td>
                                <td><input class="form-control" name="lkmTel" th:value="${linkman.lkmTel}" /></td>
                            </tr>
                            <tr>
                                <td>手机</td>
                                <td><input class="form-control" name="lkmMobile" th:value="${linkman.lkmMobile}" /></td>
                                <td>备注</td>
                                <td><input class="form-control" name="lkmMemo" th:value="${linkman.lkmMemo}" /></td>
                            </tr>
                        </table>
                            <div class="form-group" style="text-align: center;margin-top: 20px">
                                <button type="button" class="btn btn-primary" id="back">返回</button>
                                <button  type="submit" class="btn btn-dark">保存</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
</body>
<script layout:fragment="js">
    $(document).ready(function(){
        $("#back").on("click",function(){
            window.history.back();
        });
    });
</script>
</html>